package demoMod.stsconsole.commands;

import demoMod.stsconsole.dungeons.AbstractDungeon;
import demoMod.stsconsole.enums.ErrType;

import java.util.Scanner;

public class EndTurn extends AbstractCommand {
    @Override
    public void execute(String[] args, Scanner sc) {
        if (args.length != 0) {
            this.errMsg(ErrType.WRONG_ARGUMENT);
            return;
        }
        AbstractDungeon.currDungeon.currMapNode.room.combatManager.endTurn();
    }

    @Override
    public boolean requiredPrompt(String currentPrompt) {
        return currentPrompt.contains("Combat");
    }
}
